<template>
  <a-config-provider :locale="zhCN">
    <a-spin :spinning="spinning" tip="加载中..." size="large">
      <router-view></router-view>
    </a-spin>  
  </a-config-provider>
  </template>
  <script setup lang="ts">
  import { computed } from 'vue';
  import zhCN from 'ant-design-vue/es/locale/zh_CN';
  import 'dayjs/locale/zh-cn';
  import { useSpinStore } from '@/store/modules/spin';
  let spinStore = useSpinStore();
  const spinning = computed(() => spinStore.loading);
  </script>
  <style>
  #app {
    height: 100%;
    background-color: #f0f2f5
  }
  </style>